
module "prod-traefik-large-lb" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "prod-traefik-large-lb"
  type  = "A"
  ttl   = 3600
  value = "10.10.12.43"
}

module "prod-ingress-lb" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "prod-ingress-lb"
  type  = "A"
  ttl   = 3600
  value = "10.3.3.42"
}

module "traefik-harbor" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "traefik-harbor"
  type  = "A"
  value = "10.10.12.135"
}

module "prod-ack-traefik" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "prod-ack-traefik"
  type  = "A"
  value = "10.246.2.154"
}

module "cloudadmin2" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "cloudadmin2"
  type  = "A"
  ttl   = 3600
  value = "10.8.1.253"
}

module "code-s" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "code-s"
  type  = "A"
  ttl   = 3600
  value = "10.10.13.1"
}

module "prod-kafka" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "prod-kafka"
  type  = "A"
  value = "10.3.9.110"
}

module "pai-console" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "pai-console"
  type  = "A"
  value = "10.16.10.98"
}

module "pai-user" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "pai-user"
  type  = "A"
  value = "10.16.10.98"
}

module "arm-ccache" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "arm-ccache"
  type  = "A"
  ttl   = 3600
  value = "10.10.12.139"
}

module "alluxio" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "alluxio"
  type  = "A"
  ttl   = 3600
  value = "10.8.1.25"
}

module "app" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "app"
  type  = "A"

  # NOTE: there is also a public dns record, for users outside of the
  # office network, pointing to 10.8.1.25 (a nginx server with ldap
  # auth, maintained by IT crew), which in turn forward requests to
  # nexus.deeproute.ai.
  value = "10.10.12.43"

  remark = "Visualizer的首次静态资源加载"
}

module "apt-auth" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "apt-auth"
  type  = "A"
  ttl   = 3600
  value = "10.8.1.25"
}

module "apt-proxy" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "apt-proxy"
  type  = "A"
  ttl   = 3600
  value = "10.8.1.25"
}

module "apt-sh" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "apt-sh"
  type  = "A"
  ttl   = 3600
  value = "115.159.59.128"
}

module "apt-sz" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "apt-sz"
  type  = "A"
  ttl   = 3600
  value = "10.8.1.25"
}

module "aptpkg" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "aptpkg"
  type  = "A"
  ttl   = 3600
  value = "10.10.10.52"
}

module "argo-workflows" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "argo-workflows"
  type  = "A"
  ttl   = 3600
  value = "10.10.12.29"
}

module "arrayvpn" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "arrayvpn"
  type  = "A"
  ttl   = 3600
  value = "10.8.1.209"
}

module "auth" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "auth"
  type  = "A"
  value = "10.8.1.25"

  remark = "Sentry登录"
}

module "ccache" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "ccache"
  type  = "A"
  ttl   = 3600
  value = "10.10.12.49"
}

module "chatgpt-feishu-bot" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "chatgpt-feishu-bot"
  type  = "A"
  ttl   = 3600
  value = "183.61.62.44"
}

module "a-to-10-16-10-98" {
  source = "../../modules/hybrid/dns_multi/deeproute.cn"

  type  = "A"
  value = "10.16.10.98"
  ttl = 3600

  rrs = [
    "dev-mlflow",
    "dlc-gateway",
    "dlc-gateway.dr",
    "dlc-tensorboard",
    "dlc-tensorboard.dr",
    "dsw",
    "dsw-gateway",
    "dsw-gateway.dr",
    "dsw.dr",
    "kibana",
    "kibana.dr",
    "mlflow",
    "pai",
    "pai-console.dr",
    "pai-proxy",
    "pai-proxy.dr",
    "pai-user.dr",
    "pai.dr",
    "paiflow",
    "paiflow-argo",
    "paiflow-argo.dr",
    "paiflow-direct",
    "paiflow-direct.dr",
    "paiflow-minio",
    "paiflow-minio.dr",
    "paiflow.dr",
    "tenant-proxy",
    "tenant-proxy.dr",
  ]
}

module "cnames-to-prod-traefik-lb" {
  source = "../../modules/hybrid/dns_multi/deeproute.cn"

  type  = "CNAME"
  value = "prod-traefik-lb.deeproute.cn"
  ttl = 3600

  rrs = [
    "benchmark-server",
    "car-grafana",
    "car-monitoring-platform-frontend",
    "cloud-dev-grafana",
    "dataocean-account-management-service",
    "dataocean-authentication-service",
    "dataocean-onboard-task-management-service",
    "dataocean-vehicle-data-service",
    "dataset-server",
    "mapping-pipeline-server",
    "mapping-task-server",
    "maps-version-server",
    "minio",
    "minio-cs",
    "ml-platform-annotation",
    "ml-platform-explorer",
    "ml-platform-wormhole",
    "mlp-api-etl",
    "mlp-api-mlpfields",
    "mlp-northstar",
    "mlp-northstar-backend",
    "monitor-backend",
    "nacos",
    "new-prod-kibana",
    "old-alertmanager",
    "old-prometheus",
    "pgadmin",
    "posing-pipeline-server",
    "prod-alluxio",
    "prod-alluxio-proxy",
    "prod-apm-server",
    "prod-clookup",
    "prod-elasticview",
    "prod-gitlab-permission-watchdoge",
    "prod-iac-api",
    "prod-kafka-ui",
    "prod-keelsh",
    "prod-ml-platform-milkyway-scheduler",
    "prod-ml-platform-trino-server-coordinator",
    "prod-mlp-northstar-jupyter",
    "prod-mlp-northstar-proxy",
    "prod-nacos",
    "prod-ops-heketi",
    "prod-ops-nacos",
    "prod-sdcenter-dispatch-api",
    "prod-skywalking",
    "prod-snmp",
    "prod-trivy",
    "prod-zipkin",
    "region-server",
    "sentry-tools-service",
    "simulation-admin",
    "svcstatus-grafana",
    "trajectory-visualization-server",
  ]
}

module "webvis" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  type  = "CNAME"
  value = "prod-traefik-lb.deeproute.cn"
  rr = "webvis"
  remark = "安全员APP"
}

module "cnames-to-prod-ingress-lb" {
  source = "../../modules/hybrid/dns_multi/deeproute.cn"

  type  = "CNAME"
  value = "prod-ingress-lb.deeproute.cn"

  rrs = [
    "ops-sso",
    "prod-helm-chartmuseum",
    "prod-hubble-ui",
    "prod-jaeger",
    "prod-traefik",
  ]
}

module "cnames-to-prod-traefik-large-lb" {
  source = "../../modules/hybrid/dns_multi/deeproute.cn"

  type  = "CNAME"
  value = "prod-traefik-large-lb.deeproute.cn"

  rrs = [
    "mlp-api-gateway",
    "alarm-system",
    "alarm-system-manager",
    "alarm-system-monitor",
    "dataocean",
    "dr-diagnostic-tool",
    "droperation",
    "keycloak",
    "kube-auth-manager",
    "kube-auth-manager-web",
    "mlp-api-gateway",
    "new-prod-elasticsearch",
    "ngale",
    "prod-external-dataocean-data-provider-service",
    "prod-kibana",
    "prod-vault",
    "simulation",
    "state-collector",
  ]
}

module "prod-elasticsearch" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  type  = "CNAME"
  value = "prod-traefik-large-lb.deeproute.cn"
  rr = "prod-elasticsearch"
  remark = "运营组回传数据到ES使用"
}

module "cnames-to-prod-ack-traefik" {
  source = "../../modules/hybrid/dns_multi/deeproute.cn"

  type  = "CNAME"
  value = "prod-ack-traefik.deeproute.cn"

  rrs = [
    "ops",
    "grafana",
    "prod-office-system-api",
  ]
}

module "a-to-10-10-10-120" {
  source = "../../modules/hybrid/dns_multi/deeproute.cn"

  type  = "A"
  value = "10.10.10.120"
  ttl   = 3600

  rrs = [
    "*.page-code",
    "*.page-dev-code",
    "*.page-prod-code",
    "*.page-stg-code",
    "alertmanager",
    "annotation-platform-frontend",
    "apt-api",
    "car",
    "collect",
    "deelooper",
    "dev-annotation-platform-frontend",
    "dev-apt-api",
    "dev-car",
    "dev-elastichq",
    "dev-harbor",
    "dev-kibana",
    "dev-kube-dashboard",
    "dev-operation-admin",
    "old-grafana",
    "old-prod-elasticsearch",
    "old-prod-kibana",
    "operation-admin",
    "pages",
    "prod-gitlab-elasticsearch",
    "prod-gitlab-kibana",
    "prod-kube-dashboard",
    "prod-monitor-backend",
    "prod-myadmin",
    "prometheus",
    "prometheusalert",
    "pypi",
    "s3-cs",
    "stg-car",
    "stg-foreman",
    "stg-harbor",
    "stg-pages",
    "stg-reg",
    "stg-sdcenter-ddspy",
    "stg-sdcenter-dispatch-api",
    "test-kube-dashboard",
    "uat-elastichq",
  ]
}

module "a-to-10-8-1-25" {
  source = "../../modules/hybrid/dns_multi/deeproute.cn"

  type  = "A"
  value = "10.8.1.25"
  ttl   = 3600

  rrs = [
    "dmz-nginx-status",
    "feishu",
    "prod-drtraining-api-gateway",
    "prod-drtraining-platform",
    "prod-drtraining-system",
    "prod-foreman",
  ]
}

module "terminal" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  type  = "A"
  value = "10.8.1.25"
  rr    = "terminal"
  remark = "Sentry远程协助"
}

module "victoria-metrics" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  type  = "A"
  value = "10.10.10.120"
  rr = "victoria-metrics"
  remark = "edge回传监控到生产"
}

# module "apt" {
#   source = "../../modules/hybrid/dns/deeproute.cn"

#   type  = "A"
#   value = "10.10.10.120"
#   rr = "apt"
#   remark = "生产营运环境，拉取deb包"
# }

module "dev-dr-safe-app" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  type  = "A"
  value = "10.10.10.120"
  rr = "dev-dr-safe-app"
  remark = "开发测试环境"
}

module "dev-apt" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  type  = "A"
  value = "10.10.10.120"
  rr = "dev-apt"
  remark = "apt源"
}

module "dr-safe-app" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  type  = "A"
  value = "10.10.10.120"
  rr = "dr-safe-app"
  remark = "安全员APP"
}

module "api-docs-drplatform" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "api-docs.drplatform"
  type  = "A"
  ttl   = 3600
  value = "10.3.9.101"
}

module "map-pipeline-qa" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "map-pipeline.qa"
  type  = "A"
  ttl   = 3600
  value = "10.10.10.67"
}

module "drplatform-bj" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "drplatform-bj"
  type  = "A"
  ttl   = 3600
  value = "39.108.90.19"
}

module "drrun-dev" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "drrun-dev"
  type  = "A"
  ttl   = 3600
  value = "120.78.210.239"
  remark = "运营系统"
}

module "drrun-integration" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "drrun-integration"
  type  = "A"
  ttl   = 3600
  value = "120.78.210.239"
  remark = "运营系统"
}

module "drrun-prod-dc" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "drrun-prod-dc"
  type  = "A"
  ttl   = 3600
  value = "10.250.84.157"
}

module "drrun-shanghai" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "drrun-shanghai"
  type  = "A"
  ttl   = 3600
  value = "120.24.59.227"
}

module "dtu-tcp-log" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "dtu-tcp-log"
  type  = "A"
  ttl   = 3600
  value = "10.9.1.53"
}

module "feishu-test" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "feishu-test"
  type  = "A"
  ttl   = 3600
  value = "10.9.9.76"
}

module "frontend-cdn" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "frontend-cdn"
  type  = "A"
  ttl   = 3600
  value = "10.9.9.53"
}

module "frontend-monitor" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "frontend-monitor"
  type  = "A"
  ttl   = 3600
  value = "183.61.62.44"
}

module "fsrelay" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "fsrelay"
  type  = "A"
  ttl   = 3600
  value = "10.3.2.101"
}

module "ftp" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "ftp"
  type  = "A"
  ttl   = 3600
  value = "10.1.1.253"
}

module "hwm" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "hwm"
  type  = "A"
  ttl   = 3600
  value = "10.8.1.16"
}

module "it" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "it"
  type  = "A"
  ttl   = 3600
  value = "10.24.39.253"
}

module "kibana-test-1" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "kibana-test-1"
  type  = "A"
  ttl   = 3600
  value = "10.10.10.113"
}

module "ks" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "ks"
  type  = "A"
  ttl   = 3600
  value = "10.3.8.131"
}

module "map-label-dev" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "map-label-dev"
  type  = "A"
  ttl   = 3600
  value = "10.9.9.94"
}

module "map-label-server" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "map-label-server"
  type  = "A"
  ttl   = 3600
  value = "10.10.12.142"
}

module "maplabel" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "maplabel"
  type  = "A"
  ttl   = 3600
  value = "119.23.61.102"
}

module "maplabel-test" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "maplabel-test"
  type  = "A"
  ttl   = 3600
  value = "10.10.11.17"
}

module "milkyway" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "milkyway"
  type  = "A"
  ttl   = 3600
  value = "10.3.1.30"
}

module "ml-platform-annotation-db" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "ml-platform-annotation-db"
  type  = "A"
  ttl   = 3600
  value = "10.9.9.117"
}

module "mlp-data-warehouse-mongodb" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "mlp-data-warehouse-mongodb"
  type  = "A"
  ttl   = 3600
  value = "10.10.12.138"
}

module "mlp-dolphinscheduler" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "mlp-dolphinscheduler"
  type  = "A"
  ttl   = 3600
  value = "10.3.1.15"
}

module "nds" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "nds"
  type  = "A"
  ttl   = 3600
  value = "10.16.10.162"
}

module "ndt-reader-server" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "ndt-reader-server"
  type  = "A"
  ttl   = 3600
  value = "10.10.12.21"
}

module "ndt-storage-server" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "ndt-storage-server"
  type  = "A"
  ttl   = 3600
  value = "10.10.12.24"
}

module "ntp" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "ntp"
  type  = "A"
  ttl   = 3600
  value = "10.8.1.10"
}

module "ntp2" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "ntp2"
  type  = "A"
  ttl   = 3600
  value = "10.9.8.8"
}

module "oa" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "oa"
  type  = "A"
  ttl   = 3600
  value = "10.10.10.30"
  remark = "OA系统"
}

module "oatest" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "oatest"
  type  = "A"
  ttl   = 3600
  value = "10.9.9.89"
}

module "oauth2" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "oauth2"
  type  = "A"
  ttl   = 3600
  value = "10.9.9.132"
}

module "op-influxdb" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "op-influxdb"
  type  = "A"
  ttl   = 3600
  value = "10.9.1.56"
}

module "opendcim" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "opendcim"
  type  = "A"
  ttl   = 3600
  value = "10.3.5.25"
}

module "operation" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "operation"
  type  = "A"
  ttl   = 3600
  value = "120.77.242.152"
  remark = "运营系统正式环境"
  status = "DISABLE"
}

module "operation-dev" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "operation-dev"
  type  = "A"
  ttl   = 3600
  value = "120.78.210.239"
}

module "operation-stg" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "operation-stg"
  type  = "A"
  ttl   = 3600
  value = "183.61.62.44"
}

module "operation-streaming" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "operation-streaming"
  type  = "A"
  ttl   = 3600
  value = "10.250.77.149"
}

module "operation-test" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "operation-test"
  type  = "A"
  ttl   = 3600
  value = "183.61.62.44"
}

module "ops-salt" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "ops-salt"
  type  = "A"
  ttl   = 3600
  value = "10.10.12.133"
  remark = "基础设施管理（车端系统）域名"
}

module "pose-server-reader" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "pose-server-reader"
  type  = "A"
  ttl   = 3600
  value = "10.10.12.44"
}

module "pose-server-writer" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "pose-server-writer"
  type  = "A"
  ttl   = 3600
  value = "10.10.12.46"
}

module "promstack-dev" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "promstack-dev"
  type  = "A"
  ttl   = 3600
  value = "10.250.77.149"
}

module "promstack-prod" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "promstack-prod"
  type  = "A"
  ttl   = 3600
  value = "10.250.84.145"
}

module "pxe" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "pxe"
  type  = "A"
  ttl   = 3600
  value = "10.9.8.8"
}

module "repo" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "repo"
  type  = "A"
  ttl   = 3600
  value = "10.9.8.8"
}

module "reset" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "reset"
  type  = "A"
  ttl   = 3600
  value = "10.10.10.106"
}

module "safe" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "safe"
  type  = "A"
  ttl   = 3600
  value = "10.10.10.98"
}

module "semantic-map-reader-server" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "semantic-map-reader-server"
  type  = "A"
  ttl   = 3600
  value = "10.10.12.40"
}

module "semantic-map-storage-server" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "semantic-map-storage-server"
  type  = "A"
  ttl   = 3600
  value = "10.10.12.144"
}

module "ciweb" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "ciweb"
  type  = "A"
  ttl   = 3600
  value = "10.9.8.63"
}

module "prod-data-kafka" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "prod-data-kafka"
  type  = "A"
  ttl   = 3600
  value = "10.3.9.110"
}

module "prod-ingress-gitlab-lb" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "prod-ingress-gitlab-lb"
  type  = "A"
  ttl   = 3600
  value = "10.3.3.48"
}

module "prod-ingress-grpc-lb" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "prod-ingress-grpc-lb"
  type  = "A"
  ttl   = 3600
  value = "10.3.3.41"
}

module "prod-ingress-internal-lb" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "prod-ingress-internal-lb"
  type  = "A"
  ttl   = 3600
  value = "10.3.3.43"
}

module "prod-ingress-large-lb" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "prod-ingress-large-lb"
  type  = "A"
  ttl   = 3600
  value = "10.3.3.44"
}

module "prod-kubeedge-scheduler" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "prod-kubeedge-scheduler"
  type  = "A"
  ttl   = 3600
  value = "10.250.85.140"
}

module "prod-map-platform" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "prod-map-platform"
  type  = "A"
  ttl   = 3600
  value = "10.10.12.47"
}

# TODO
#
# module "prod-otel-collector-grpc" {
#   source = "../../modules/hybrid/dns/deeproute.cn"
#
#   rr    = "prod-otel-collector-grpc"
#   type  = "A"
#   ttl   = 3600
#   value = "183.61.62.44"
# }

# TODO
#
# module "prod-otel-collector-http" {
#   source = "../../modules/hybrid/dns/deeproute.cn"
#
#   rr    = "prod-otel-collector-http"
#   type  = "A"
#   ttl   = 3600
#   value = "183.61.62.44"
# }

module "prod-planing-mongo" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "prod-planing-mongo"
  type  = "A"
  ttl   = 3600
  value = "10.10.12.40"
}

module "prod-rabbitmq" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "prod-rabbitmq"
  type  = "A"
  ttl   = 3600
  value = "10.10.12.45"
}

module "prod-receiver-internal-mesh" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "prod-receiver-internal.mesh"
  type  = "A"
  ttl   = 3600
  value = "10.10.12.39"
}

module "prod-simulation-platform" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "prod-simulation-platform"
  type  = "A"
  ttl   = 3600
  value = "10.10.12.39"
}

module "prod-simulation-redash" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "prod-simulation-redash"
  type  = "A"
  ttl   = 3600
  value = "10.10.12.41"
}

module "prod-streaming" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "prod-streaming"
  type  = "A"
  ttl   = 3600
  value = "10.250.84.140"
}

module "prod-traefik-lb" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "prod-traefik-lb"
  type  = "A"
  ttl   = 3600
  value = "10.10.12.17"
}

module "prod-traefik-lb-tcp" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "prod-traefik-lb-tcp"
  type  = "A"
  ttl   = 3600
  value = "10.10.12.18"
}

module "receiver-internal-mesh" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "receiver-internal.mesh"
  type  = "A"
  ttl   = 3600
  value = "10.3.9.116"
}

module "hrm" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "hrm"
  type  = "A"
  value = "183.61.62.44"
}

# pointing to the jump box to all k8s servers
module "k8s-jump-00" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "k8s-jump-00"
  type  = "A"
  value = "10.9.9.37"
}

# TODO: remove
#
# module "prod-mesh-receiver" {
#   source = "../../modules/hybrid/dns/deeproute.cn"
#
#   rr    = "prod.mesh-receiver"
#   type  = "A"
#   ttl   = 3600
#   value = "183.61.62.46"
# }

# TODO: dev.mesh-receiver 3600 A  183.61.62.44
# TODO: stg.mesh-receiver 3600 A  183.61.62.45
